﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace Warehouse.DataAccess
{
    public partial class ProductCategory : CustomeEntity<ProductCategory>
    {
        protected override System.Linq.Expressions.Expression<Func<ProductCategory, bool>> GetPredicate()
        {
            return p => p.ID == this.ID;
        }

        #region Public Static Methods
        public static ProductCategory GetProductCategory(int Id)
        {
            return GetOne(p => p.ID == Id);
        }

        public static ProductCategory[] GetProductCategories()
        {
            return GetList().ToArray();
        }
        #endregion
    }
}
